
public abstract class Message{
	
	protected byte type;
	protected int length;
	protected byte[] payload;

	public abstract Byte getType();

	protected abstract void setType(Byte type);

	public abstract int getLength();

	protected abstract void setLength(int length);

	public abstract byte[] getPayload();

	public abstract void setPayload(byte[] payload);
}
